Latest Questions

nextjs and bootstrap5 modal

Hello I would like to use bootstrap 5 without react-bootstrap and reactstrap when I create my modal I end up with this error: TypeError: undefined is not an obj

mat-datepicker change date format not working

I am using the providers in my module to change the format of the datepicker in FiltriRecuperoComponent see code below export const MY_FORMATS = { parse: {

Binding Callback Function to a HeaderTemplate

How do I bind a callback function to a DataTemplate inside a HeaderTemplate in WinUI3? After reading various answers it appears the DataContext inside a HeaderT

Why can't i use the € symbol with printf?

How can i put this symbol (€) on the terminal using c. I've tried: printf("%c",0128); 0128 is the code on the ascii table but the compiller gives the error

I am unable to click on any element which is inside a frame tag in Test Cafe

I am able to login to my application but after that unable to perform any action because all elements are inside the frame tag. The approaches I have tried: Sel

Java Slick2D cmd output

Is there any way to disable automatic Slick2D info output to CMD window showing line INFO:Use Java PNG Loader = true every time it is used? Besides being pretty

First file created with Flutter leads to white screen

I got Flutter installed. No problems with flutter doctor. Installed Dart en Flutter in Android Studio, opened a new Flutter project and chose for Flutter (and f

React native reanimated runOnJs - does not update state every time

I have a list of items that should change state when they are swiped passed a certain threshold. I'm using runOnJs to call a function to change the state. Now w

Extending Vuetify's VBtn component to create a reusable icon button component

I've been using the example Codepen (https://codepen.io/whoistobias/pen/yLNgjwy) to try to extend the Vuetify VBtn component to create a reusable Button Icon co

Update custom hook's variable after initial call

I created a custom fetch hook called useFetch() and initialled it in my App.js component, to render a list of movies when the web app loads up the page. I am tr

Changing AudioHandler.mediaItem without a Queue

I am working on my first Flutter app which implements basic stream functionality. Upon starting, the app loads a stream from source A. The app contains navigati

Memory leak issue virtual camera macOS, swift SwiftUI zoom caphost

We are developing a application with virtual camera plugin for macOS by using swiftUI & swift. It has also C++ & objective C library. When we use that p

Go gorilla websocket write deadline

I am unable to understand this part of the code which uses c.conn.SetWriteDeadline function. // Time allowed to write a message to the peer. writeWait

Minimize chrome ribbon button in python selenium

I have python selenium code to expand chrome button as mentioned below. button.click() And it expands button like this: Now I want to minimize button. Is ther

Proper way of dealing with returning from a fetch

I'm a bit new to coding in a JS/TS way and I just wanted to know the best practice when it comes to returning and handling void and values that come from a fetc

Typescript - Object display correct datas but properties are undefined on access

When I log the entire object all the datas are displayed but when I try to access the properties they are undefined. As if the object's properties where not map

Running Pythonscript over SSH from a Jenkinsagent doesn't start the script

Update: The problem seems to be quite different from what I initially thought. Information about this is at the bottom of the post. I've been having quite the s

Laravel validation for numbers and hyphens

How do you validate the numeric values with Hypen's (-) ? I just want to validate the numeric value with Hypen's and without Hypen's. Thank you so much ! For ex

Can't send mail with Lumen framework and no error appears

Since yesterday I have had problems sending emails with Lumen. I think I have followed all the steps in the documentation correctly, but unfortunately I cannot

How do I connect to JawsDB (add-on) with a Github deployment (javascript program) on Heroku?

I have tried my best to debug this issue for the past few days with no luck. I am a beginner so there could totally be simple things I just didn't know. So I ha

cannot import name '_registerMatType' from 'cv2.cv2'

I got below error message when I run model_main_tf2.py on Object Detection API: Traceback (most recent call last): File "/content/models/research/object_detec

Python asyncio loop.run_forever()

I try to do a trading bot and the most things work fine. But everytime the internet connection is gone for a short time, the code fails. I use asyncio run_forev

How can i count the difference between dates within the same column (SAS)

Total beginner stuff in SAS, but still..How can i count the number of dates within the same column for each ID? Dataset want (I have added the variable Count_da

Image cropper in Jetpack Compose?

I have searched everywhere but didn't got a single documentation about cropping images in Jetpack ComposeHow to crop Image in Jetpack Compose?

Prefix every line of bash script output with time since script start

Main question in the title: I want to prefix every line of script output with time since start of the script. Background. I use GNU parallel to run jobs, some o

How to include Bearer Token in Header using Django Rest Framework?

I'm using rest_framework_simplejwt package for JWT authentication in Django. I created some APIs for login, reg, token_verify, referesh_token and student_data.

What's the number with the biggest Collatz sequence in a range?

I have to write a program using recursion that, given n, returns the minimum value m, 1 ≤ m ≤ n, that generates the longest sequence of Collatz Steps For

How to transfer SOL in anchor smart contract instruction

I am creating a dapp where multiple users can deposit SOL into an event account, and depending on whoever wins the event, they can redeem SOL back to their wall

nested forEach not working with append HTML

Nested forEach() not working with append HTML. Data is coming properly fine in console but not properly displaying with append HTML. My Code:- data = { re

Understanding pytest-django test arguments

What are 'rf' and 'user_context' parameters and when are they assigned? import pytest from rest_framework import status from rest_framework.reverse import rever